﻿using System.ComponentModel.DataAnnotations;

namespace MVC4App.Areas.Administrators.Models
{
    public class RoleInSiteModel
    {
        /// <summary>
        /// Gets or sets the identifier.
        /// </summary>
        /// <value>
        /// The identifier.
        /// </value>
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets the role identifier.
        /// </summary>
        /// <value>
        /// The role identifier.
        /// </value>
        [Required(ErrorMessageResourceType = typeof(NmResources.MessageResource), ErrorMessageResourceName = "Required")]
        public int RoleId { get; set; }

        /// <summary>
        /// Gets or sets the permission identifier.
        /// </summary>
        /// <value>
        /// The permission identifier.
        /// </value>
        [Required(ErrorMessageResourceType = typeof(NmResources.MessageResource), ErrorMessageResourceName = "Required")]
        public int PermissionId { get; set; }

        /// <summary>
        /// Gets or sets the site identifier.
        /// </summary>
        /// <value>
        /// The site identifier.
        /// </value>
        [Required(ErrorMessageResourceType = typeof(NmResources.MessageResource), ErrorMessageResourceName = "Required")]
        public int SiteId { get; set; }
    }
}